From f2d7433bf65e873701fcfdad948f1c278498c79b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 29 Jun 2019 22:13:41 +0000 Subject: [PATCH] constraint guide: Fix initial property values This was overlooked when the max-width/max-height/ strength properties were added. --- gtk/gtkconstraintguide.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtk/gtkconstraintguide.c b/gtk/gtkconstraintguide.c index b6db1554b2..f394787067 100644 --- a/gtk/gtkconstraintguide.c +++ b/gtk/gtkconstraintguide.c @@ -94,6 +94,15 @@ G_DEFINE_TYPE_WITH_CODE (GtkConstraintGuide, gtk_constraint_guide, G_TYPE_OBJECT static void gtk_constraint_guide_init (GtkConstraintGuide *guide) { + guide->strength = GTK_CONSTRAINT_STRENGTH_MEDIUM; + + guide->values[MIN_WIDTH] = 0; + guide->values[MIN_HEIGHT] = 0; + guide->values[NAT_WIDTH] = 0; + guide->values[NAT_HEIGHT] = 0; + guide->values[MAX_WIDTH] = G_MAXINT; + guide->values[MAX_HEIGHT] = G_MAXINT; + guide->bound_attributes = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, -- 2.30.2